/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.meibanguserandclient.service;

import cn.apestar.common.persistence.Page;
import cn.apestar.common.service.CrudService;
import cn.apestar.modules.meibang.meibanguserandclient.dao.MeibangUserAndClientDao;
import cn.apestar.modules.meibang.meibanguserandclient.entity.MeibangUserAndClient;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 业务管理客Service
 *
 * @author yudw
 * @version 2017-05-03
 */
@Service @Transactional(readOnly = true) public class MeibangUserAndClientService
    extends CrudService<MeibangUserAndClientDao, MeibangUserAndClient> {

    public MeibangUserAndClient get(String id) {
        return super.get(id);
    }

    public List<MeibangUserAndClient> findList(MeibangUserAndClient meibangUserAndClient) {
        return super.findList(meibangUserAndClient);
    }

    public Page<MeibangUserAndClient> findPage(Page<MeibangUserAndClient> page,
        MeibangUserAndClient meibangUserAndClient) {
        return super.findPage(page, meibangUserAndClient);
    }

    @Transactional(readOnly = false) public void save(MeibangUserAndClient meibangUserAndClient) {
        super.save(meibangUserAndClient);
    }

    @Transactional(readOnly = false) public void insertAll(List<MeibangUserAndClient> list) {
        dao.insertAll(list);
    }

    @Transactional(readOnly = false) public void delete(MeibangUserAndClient meibangUserAndClient) {
        super.delete(meibangUserAndClient);
    }



}